//
//  HQBaseViewController.h
//  MobileiOS
//
//  Created by 郝庆松 on 2018/5/4.
//  Copyright © 2018年 PCITC. All rights reserved.
//

#import <UIKit/UIKit.h>

#define NAV_BAKC_IMG @"back_normal"

@interface HQBaseViewController : UIViewController<UISearchBarDelegate>
{
    UISearchBar *s;
}

-(void)sourceLabel:(UILabel *)sourceLabel withTitle:(NSString *)title withData:(NSString *)data withData2:(NSString *)data2;
-(void)sourceLabel:(UILabel *)sourceLabel withTitle:(NSString *)title withData:(NSString *)data;

-(void)setPlaceHolderColor:(UITextField *)textField;

- (void)searchBarSearchButtonClicked:(UISearchBar *)searchBar;

-(void)addSearchBar:(NSString *)placeHolder;
-(void)addSearchBar2:(NSString *)placeHolder;

-(void)addTopSearch;
-(void)addTopSearch:(NSString *)string;
/**
 *  显示弹出提示框
 */
-(void)tostView:(NSString *)text;

/**
 *  显示加载提示
 */
-(void)showHudText:(NSString *)text;

/**
 *  显示通用加载提示
 */
-(void)showHudPbulic;

/**
 *  隐藏Loding
 */
-(void)hiddnHud;


-(void)hiddenErrorHud;

/**
 添加键盘事件监听
 */
-(void)addKeyBoardObserver;

/**
 当键盘出现或改变时调用

 @param aNotification 键盘出现通知
 */
- (void)keyboardWillShow:(NSNotification *)aNotification;
//当键退出时调用

/**
 当键盘退出时调用

 @param aNotification 键盘退出通知
 */
- (void)keyboardWillHide:(NSNotification *)aNotification;

/**
 *  设置空数据
 */
-(void)isBlankData:(UITableView *)tableView withData:(NSArray *)dataSource;

/**
 判断用户输入是否为空
 
 @param inputStr 输入字符串
 @return 是否正确
 */
-(BOOL)isInputEmpty:(NSString *)inputStr;

/**
 *  给列表添加数据为空提示
 */
-(void)addNoneDataView:(UITableView *)tableView withText:(NSString *)text;
/**
 *  给列表添加数据为空提示
 */
-(void)addNoneDataCollView:(UICollectionView *)collectionView withText:(NSString *)text;

@end
